package com.kiku.user.service.impl;

import com.kiku.user.service.UserService;
import com.kiku.user.mapper.UserMapper;
import com.kiku.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Kiku
 * @date 2019/6/12 16:01
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
